﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Category.aspx.cs" Inherits="Category" Title="分类商品" StylesheetTheme="SkinFile"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 580px; height: 111px">
        <tr>
            <td colspan="3" style="height:35px;">
                <img src="images/arr.gif" />当前分类：<asp:Label ID="lblCat" runat="server" Width="197px"></asp:Label><br /><hr style="color:Gray;"/>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height:550px;" valign="top">
                <asp:DataList ID="dlLst" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="dlLst_ItemCommand" >
                    <ItemTemplate>
                        <table border="0" cellpadding="5" cellspacing="0" style="font-size: 12px" width="142">
                            <tbody>
                                <tr bgcolor="#f1f7db">
                                    <td align="center" colspan="2" height="90">
                                        <img border="0" height="80" src='<%#Eval("ProPic")%>' width="100" />
                                        <asp:Label ID="Id" runat="server" Text='<%#Eval("ProId")%>' Visible="false"></asp:Label>
                                    </td>
                                </tr>
                                <tr bgcolor="#f1f7db">
                                    <td align="center" colspan="2" style="font-weight: bold; color: gray">
                                        <asp:Label ID="Proname" runat="server" Text='<%#Eval("Proname")%>'></asp:Label></td>
                                </tr>
                                <tr bgcolor="#f1f7db" height="20">
                                    <td align="right" width="40%">
                                        市场价：</td>
                                    <td width="60%">
                                        <asp:Label ID="MarketPrice" runat="server" Text='<%#Eval("MarketPrice")%>'></asp:Label>元</td>
                                </tr>
                                <tr bgcolor="#f1f7db" height="20">
                                    <td align="right">
                                        会员价：</td>
                                    <td>
                                        <font color="#ff6600">
                                            <asp:Label ID="MemberPrice" runat="server" Text='<%#Eval("MemberPrice")%>'></asp:Label>
                                        </font>元</td>
                                </tr>
                                <tr bgcolor="#f6f6f6">
                                    <td align="right">
                                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="add" Height="19" ImageUrl="images/add1.gif"
                                            Width="50" CausesValidation="False"  />
                                    </td>
                                    <td align="middle">
                                        <a href='show.aspx?id=<%#Eval("ProId") %>&type=1'>
                                            <img align="absMiddle" border="0" height="19" src="images/show.jpg" width="50" /></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </ItemTemplate>
                </asp:DataList></td>
        </tr>
        <tr>
            <td colspan="3" style="height:35px;" class="hei12">
               <asp:linkbutton id="FirstLB" runat="server" OnCommand="LinkButton_Click" CommandName="first" CausesValidation="False">第一页</asp:linkbutton>&nbsp;
            <asp:linkbutton id="PreviousLB" runat="server" OnCommand="LinkButton_Click" CommandName="prev" CausesValidation="False">上一页</asp:linkbutton>&nbsp;
            <asp:linkbutton id="NextLB" runat="server" OnCommand=LinkButton_Click CommandName="next" CausesValidation="False">下一页</asp:linkbutton>&nbsp;
            <asp:linkbutton id="EndLB" runat="server" OnCommand=LinkButton_Click CommandName="end" CausesValidation="False" >最后一页</asp:linkbutton>&nbsp;&nbsp;
            总<asp:label id="TotalLbl" runat="server"></asp:label>页 当前第<asp:label id="CurrentLbl" runat="server"></asp:label>页
            <asp:linkbutton id="JumpLB" runat="server" OnCommand=LinkButton_Click CommandName="jump" CausesValidation="False">跳到</asp:linkbutton>第
            <asp:textbox id="TextBox1" runat="server" Width="38px"></asp:textbox>
            页<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                    ControlToValidate="TextBox1" ErrorMessage="X" ValidationExpression="\d"></asp:RegularExpressionValidator></td>
        </tr>
    </table>
</asp:Content>

